<app-nav [step]="4"></app-nav>
<div class="mui-content bg-gray">
  <div class="top-bar bg-linear">
    <div class="flex text-center">我的</div>
  </div>
  <ul class="mui-table-view">
    <li class="mui-table-view-cell dis-flex">
      <img class="mui-pull-left user-img" src={{userImg}} alt="头像">
      <div class="mui-pull-left" *ngIf="showMessage">
        <div class="flex-table">
          {{user.verification===2 ? user.realname : '请实名认证'}}<span class="m-l">信贷经理</span></div>
        <div class="flex-table">
          <div class="">
            手机：<span class="text-orange">{{user.mobile}}</span>
          </div>
          <div class="m-l">
            城市：<span>{{user.region_name}}</span>
          </div>
        </div>
      </div>
      <div class="mui-pull-left" *ngIf="!showMessage">
        <div class="flex-table m-l p-l">
          <a class="text-orange" [routerLink]="['/attache/login']">注册/登录</a>
        </div>
      </div>
    </li>
  </ul>
  <ul class="mui-table-view m-t10" *ngIf="isLogIn">
    <li class="mui-table-view-cell">
      <a class="mui-navigate-right" (click)="certification($event)">
        实名认证
        <span class="mui-pull-right m-r30">{{verification}}</span>
      </a>
    </li>
    <li class="mui-table-view-cell">
      <a class="mui-navigate-right" [routerLink]="['/attache/preference']">
        偏好设置
      </a>
    </li>
  </ul>
  <ul class="mui-table-view m-t10">
    <li class="mui-table-view-cell">
      <a class="mui-navigate-right" [routerLink]="['/attache/pay']">
        立即充值
        <span class="mui-pull-right m-r30">现在有0秒币</span>
      </a>
    </li>
    <li class="mui-table-view-cell">
      <a class="mui-navigate-right">
        优惠券
      </a>
    </li>
    <li class="mui-table-view-cell">
      <a class="mui-navigate-right">
        使用介绍
      </a>
    </li>
  </ul>
  <ul class="mui-table-view m-t10">
    <li class="mui-table-view-cell">
      <a class="mui-navigate-right">
        关于我们
      </a>
    </li>
  </ul>
  <ul class="mui-table-view m-t10" *ngIf="isLogIn">
    <li class="mui-table-view-cell">
      <a class="mui-text-center" (click)="logOut($event)">退出登录</a>
    </li>
  </ul>
</div>
